project('pk6', 'c', version: '0.0.1', license: 'GPL3+')

libb6b_dep = dependency('b6b', required: false)
if libb6b_dep.found()
	message('libb6b is installed on the system, we will compile scripting functionality')
else
	warning('libb6b could not be found on your system, we will not compile scripting functionality')
endif

conf = configuration_data()
conf.set('VERSION', '"0.0.1"')
conf.set('PACKAGE', '"pk6"')
conf.set('LIBB6B', libb6b_dep.found(), description: 'Was libb6b found for linking?')
configure_file(output: 'config.h', configuration: conf)

incdir = include_directories('build')

executable('pk6', 'src/pk6.c', dependencies: libb6b_dep, include_directories: incdir, install: true)
executable('pk6-server', 'src/pk6-server.c', dependencies: libb6b_dep, include_directories: incdir, install: true)
